<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <section id="news"><header>京东头条<a href="#">更多 ></a></header><ul><li><a href="#">鼠标满300减30</a></li><li><a href="#">京东生鲜极速达</a></li><li><a href="#">99元抢平板！品牌秒杀</a></li><li><a href="#">格力节能领跑京东优惠购物节</a></li><li><a href="#">苏泊尔电器大促满199-100</a></li></ul></section>

    <script>
        // let obj = document.getElementById("news");
        // let str = obj.lastChild.firstChild.nextSibling.innerHTML;
        // console.log(str);

        var obj1 = document.getElementById("news");
        var str1 = obj1.lastChild.firstChild.nextSibling.nextSibling.innerHTML;
        alert(str1);

    </script>

</body>

</html>